#!/bin/zsh
zmodload -F zsh/parameter p:functions

functions[autocomplete:${1}:old]="$(
    unfunction $1 2> /dev/null
    builtin autoload +X -Uz $1
    print -r -- "$functions[$1]"
)"
